package com.manage.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.manage.api.entity.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author LC
 * @createTime 2021/2/18 14:26
 * @desc 角色信息管理表
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("SYS_ROLE")
public class Role extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 角色名称
     */
    @TableField(value = "NAME")
    private String name;

    /**
     * 角色标签
     */
    @TableField(value = "CODE")
    private String code;

    /**
     * 角色状态 1正常 2禁用
     */
    @TableField(value = "STATUS")
    private Integer status;

    /**
     * 备注
     */
    @TableField(value = "NOTE")
    private String note;

    /**
     * 排序
     */
    @TableField(value = "SORT")
    private Integer sort;
}
